#!/bin/sh

# Add a hook to /etc/profile that sources profile scripts installed by
# packages.
echo "# BEGIN TPKG HOOK
for i in /etc/profile.d/*.sh ; do
    if [ -r \"\$i\" ]; then
        . \$i
    fi
done
# END TPKG HOOK" >> /etc/profile
